﻿using PivotCollectionTools.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PivotCollectionTools.Xml;
using System.Collections.ObjectModel;

namespace Data
{
    
    
    /// <summary>
    ///This is a test class for PivotTableTest and is intended
    ///to contain all PivotTableTest Unit Tests
    ///</summary>
    [TestClass()]
    public class PivotTableTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for DataRows
        ///</summary>
        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.Data.dll")]
        public void DataRowsTest()
        {
            PivotTable_Accessor target = new PivotTable_Accessor(); // TODO: Initialize to an appropriate value
            ReadOnlyCollection<PivotTableRow> expected = null; // TODO: Initialize to an appropriate value
            ReadOnlyCollection<PivotTableRow> actual;
            target.DataRows = expected;
            actual = target.DataRows;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Columns
        ///</summary>
        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.Data.dll")]
        public void ColumnsTest()
        {
            PivotTable_Accessor target = new PivotTable_Accessor(); // TODO: Initialize to an appropriate value
            PivotTableColumnCollection expected = null; // TODO: Initialize to an appropriate value
            PivotTableColumnCollection actual;
            target.Columns = expected;
            actual = target.Columns;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CategoryCount
        ///</summary>
        [TestMethod()]
        public void CategoryCountTest()
        {
            PivotTable target = new PivotTable(); // TODO: Initialize to an appropriate value
            int actual;
            actual = target.CategoryCount;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Categories
        ///</summary>
        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.Data.dll")]
        public void CategoriesTest()
        {
            PivotTable_Accessor target = new PivotTable_Accessor(); // TODO: Initialize to an appropriate value
            PivotTableCategoryCollection expected = null; // TODO: Initialize to an appropriate value
            PivotTableCategoryCollection actual;
            target.Categories = expected;
            actual = target.Categories;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }


        /// <summary>
        ///A test for InitializeColumns
        ///</summary>
        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.Data.dll")]
        public void InitializeColumnsTest()
        {
            PivotTable_Accessor target = new PivotTable_Accessor(); // TODO: Initialize to an appropriate value
            target.InitializeColumns();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CreateNewRow
        ///</summary>
        [TestMethod()]
        public void CreateNewRowTest()
        {
            PivotTable target = new PivotTable(); // TODO: Initialize to an appropriate value
            PivotTableRow expected = null; // TODO: Initialize to an appropriate value
            PivotTableRow actual;
            actual = target.NewRow();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Clear
        ///</summary>
        [TestMethod()]
        public void ClearTest()
        {
            PivotTable target = new PivotTable(); // TODO: Initialize to an appropriate value
            target.Clear();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddColumn
        ///</summary>
        [TestMethod()]
        public void AddColumnTest2()
        {
            PivotTable target = new PivotTable(); // TODO: Initialize to an appropriate value
            string name = string.Empty; // TODO: Initialize to an appropriate value
            string categoryName = string.Empty; // TODO: Initialize to an appropriate value
            PivotTableColumn expected = null; // TODO: Initialize to an appropriate value
            PivotTableColumn actual;
            actual = target.AddColumn(name);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for AddColumn
        ///</summary>
        [TestMethod()]
        [DeploymentItem("PivotCollectionTools.Data.dll")]
        public void AddColumnTest1()
        {
            PivotTable_Accessor target = new PivotTable_Accessor(); // TODO: Initialize to an appropriate value
            string columnName = string.Empty; // TODO: Initialize to an appropriate value
            PivotTableCategory category = null; // TODO: Initialize to an appropriate value
            PivotTableColumn expected = null; // TODO: Initialize to an appropriate value
            PivotTableColumn actual;
            actual = target.AddColumn(columnName, category);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for AddColumn
        ///</summary>
        [TestMethod()]
        public void AddColumnTest()
        {
            PivotTable target = new PivotTable(); // TODO: Initialize to an appropriate value
            string columnName = string.Empty; // TODO: Initialize to an appropriate value
            PivotTableColumn expected = null; // TODO: Initialize to an appropriate value
            PivotTableColumn actual;
            actual = target.AddColumn(columnName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PivotTable Constructor
        ///</summary>
        [TestMethod()]
        public void PivotTableConstructorTest()
        {
            PivotTable target = new PivotTable();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
